package com.maoyanjava.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.maoyanjava.mapper.UserinfoMapper;
import com.maoyanjava.pojo.Userinfo;
import com.maoyanjava.service.UserinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserinfoServiceImpl implements UserinfoService {
    @Autowired
    private UserinfoMapper um;
    @Override
    public List<Userinfo> getAllUserinfo() {
        return um.selectList(null);
    }

    @Override
    public int upUserinfo(Userinfo userinfo) {

        return um.updateById(userinfo);
    }
}
